//
//  main.m
//  base_foundation-03-指向指针的指针
//
//  Created by China Dragon on 2023/7/9.
//

#import <Foundation/Foundation.h>

void changeC(char *d){
    *d = 9;
}

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        // insert code here...
        
        char *c = 6;
        changeC(&c);
        NSLog(@"c is %i", c);
        //c is 9
        
        // ** 指针就是存储地址
       
    }
    return 0;
}
